﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace IceDog.JsonDotNet.Model
{
    public class CustomerInvoice
    {
        public CustomerInvoice()
        {
            AdditionalData = new Dictionary<string, dynamic>()
            {
                ["extDate"]="2020",
                ["SPec"]="vv3et"
            };
        }
        public decimal HourlyRate { get; set; }
        public decimal Hours { get; set; }
        public decimal TaxRate { get; set; }
        public string Remark { get; set; }
        [JsonExtensionData]
        public IDictionary<string, dynamic> AdditionalData { get; set; }
        [OnSerializing]
        internal void OnSerializingMethod(StreamingContext context)
        {
            Remark = "OnSerializing";
        }

        [OnDeserializing]
        internal void OnDeserializingMethod(StreamingContext context)
        {
            Remark = "OnDeserializing";
        }
    }
}
